import { request } from '@/common/request'
// 地址管理


// 添加地址
export function addAddr(data) {
  return request({
    url: `/kingon-customer/item/add`,
    method: "post",
    data,
  });
}

// 查询收货地址 itemType: 11 
export function addrList(data) {
  return request({
    url: `/kingon-customer/item/list`,
    method: "get",
    data,
  });
}

// 地址详情
export function addrDetailsById(id) {
  return request({
    url: `/kingon-customer/item/getInfo/${id}`,
    method: "get",
  });
}

// 删除地址
export function delAddrById(id) {
  return request({
    url: `/kingon-customer/item/delete?customerInformationItemIds=${id}`,
    method: "post",
  });
}


// 区域选择
export function regionLazytree(data) {
  return request({
    url: `/kingon-system/region/lazy-tree`,
    method: "get",
    data
  });
}
